include config.mk

HDRS = -I. -I/usr/include -I/usr/lib/jvm/java-1.5.0-sun/include/ -I/usr/lib/jvm/java-1.5.0-sun/include/linux
LINKLIBS = -L/usr/X11R6/lib -L/usr/lib/jvm/java-1.5.0-sun/jre/lib/i386 -lX11 -lGL -lGLU -ljawt

objects = \
	AAPolygonRenderer.o \
	common.o \
	Canvas.o \
	Context.o \
	Debug.o \
	GraphicsGL.o \
	Image.o \
	LineRenderer.o \
	PlainPolygonRenderer.o \
	scenic_Image.o \
	scenic_jni_RenderCanvas.o \
	scenic_jni_Renderer.o \
	scenic_show_SimpleMediaFile.o \
	scenic_jni_XCanvas.o \
	scenic_Tesselator.o \
	SimpleMediaFile.o \
	Tesselator.o \
	Util.o \
	VertexStore.o

all : ../../../libScenicJNI.so

../../../libScenicJNI.so : $(objects)
	$(LINK) --shared $(LINKFLAGS) -o $@ $(objects) $(LINKLIBS)
	
%.o : ../%.cpp
	$(C++) $(C++FLAGS) $(HDRS) -c $< -o $@

.PHONY : clean

clean :
	$(RM) ../../../libScenicJNI.so *.o
	makedepend

depend:
	makedepend -- $(C++FLAGS) $(HDRS) -- $(objects:.o=.cpp)

# DO NOT DELETE
